package com.vois.jack.btmgr.classicbase;

import com.vois.jack.btmgr.common.DeviceRecorderControlInterface;

public interface BtRecorderInterface {
    int RAW_RECORD_DATA = 0x01;
    int ENCODED_RECORD_OPUS_DATA = 0x02;
    int ENCODED_RECORD_SBC_DATA = 0x03;

    void create(int audioSource, int sampleRate);
    void release();

    int getAudioSource();
    int getSampleRate();

    void startRecord();
    void stopRecord();

    int putRecordData(byte[] rawData, int offset, int rawDataSize);
    int readRecordData(short[] audioData, int offsetInShort, int sizeInShort);

    int putEncodedRecordData(byte[] rawData, int offsetInByte, int rawDataSize);
    int getEncodedRecordData(byte[] rawData);

    int getAudioSessionId();
    int getRecordDataType();
}
